$(document).ready(function() {
	$("#buttonResendEmail").click(function() {
		var hrefArr = $(location).attr("href").split("=");
		var stuNumParam = hrefArr[1].substring(0, 9);
		var stuNameParam = decodeURIComponent(hrefArr[2]);
		
		$(this).attr("disabled", "true");
		$.ajax({
			url: "./sendMemberConfirmMail",
			type: "POST",
			data: {
				stuNum: stuNumParam,
				stuName: stuNameParam
			},
			success: function() {
				alert("認證信已寄出");
				$("#buttonResendEmail").removeAttr("disabled");
			}
		});
	});
});